package com.hl.toolkit.server.tycoin.common.enums;

public enum AlbumItemTypeEnum {
    PROGRAM(1, "节目"), SERIES(2, "剧头"), ALBUM(3, "专题"), LEAGUE_MATCH(13, "赛事");

    int key;
    String value;

    AlbumItemTypeEnum(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static AlbumItemTypeEnum getEnumByKey(int key) {
        for (AlbumItemTypeEnum objEnum : AlbumItemTypeEnum.values()) {
            if (key == objEnum.getKey()) {
                return objEnum;
            }
        }
        return null;
    }

}
